<%layout("/eova/layout/default_lay.html",{'title' : object.name! + '列表'}){%>
<body class="childrenBody">


	<!-- 	查询条件,系统配置的搜索条件（还会出现一个默认的过滤条件优先且需要隐藏（主要是跳转过来的数据）） -->
	<%if(isTrue(isQuery!)){%>
<!-- 	<blockquote class="layui-elem-quote quoteBox"> -->
	<#query_lay id="queryForm" objectCode="${object.code}" object="${object}"  />
<!-- 	</blockquote> -->
	
<!-- 	<blockquote class="layui-elem-quote quoteBox"> -->
<!-- 		<form class="layui-form"> -->
<!-- 			<div class="layui-inline"> -->
<!-- 				<div class="layui-input-inline"> -->
<!-- 					<input type="text" class="layui-input searchVal" placeholder="请输入搜索的内容" /> -->
<!-- 				</div> -->
<!-- 				<a class="layui-btn search_btn" data-type="reload">搜索</a> -->
<!-- 			</div> -->
<!-- 			<div class="layui-inline"> -->
<!-- 				<a class="layui-btn layui-btn-normal addNews_btn">添加用户</a> -->
<!-- 			</div> -->
<!-- 			<div class="layui-inline"> -->
<!-- 				<a class="layui-btn layui-btn-danger layui-btn-normal delAll_btn">批量删除</a> -->
<!-- 			</div> -->
<!-- 		</form> -->
<!-- 	</blockquote> -->
	<%}%>
	
	
<!-- 	功能按钮 -->
	<div class="layui-btn-group">
	
	  
	 <%include("/eova/template/common/query_lay.html",{'queryId':'queryForm', 'parentId':'gridTable'}){}%>
	
	   <%for(btn in btnList){
	  try{%>
		 <%include(btn.ui,{'menu': menu, 'object':object, 'button': btn, 'gridId': 'grid','queryId':'queryForm'}){}%>
	  <%}catch(error){%>
	  <script type="text/javascript">
	  layui.use(['layer'], function(){ layer.alert("按钮 '${btn.name}' 未能加载,请联系管理员.", {icon: 2});});
	  </script>
	  <%}}%>
	  
	  
	 
	  
<!-- 	  <button class="layui-btn layui-btn-sm"  title="添加"> -->
<!-- 	    <i class="layui-icon"  >&#xe654;</i> -->
<!-- 	  </button> -->
<!-- 	  <button class="layui-btn layui-btn-sm" title="修改"> -->
<!-- 	    <i class="layui-icon">&#xe642;</i> -->
<!-- 	  </button> -->
<!-- 	  <button class="layui-btn layui-btn-sm" title="删除"> -->
<!-- 	    <i class="layui-icon">&#xe640;</i> -->
<!-- 	  </button> -->
	  
<!-- 	  <button class="layui-btn layui-btn-sm" title="查看"> -->
<!-- 	    <i class="layui-icon">&#xe60b;</i> -->
<!-- 	  </button> -->

<!-- 	  <button class="layui-btn layui-btn-sm" title="下载"> -->
<!-- 	    <i class="layui-icon">&#xe601;</i> -->
<!-- 	  </button> -->
	  

<!-- 	  <button class="layui-btn layui-btn-sm" title="上传"> -->
<!-- 	    <i class="layui-icon">&#xe62f;</i> -->
<!-- 	  </button> -->

	  
	  
	  							<% debug(object!); // 仅超级管理员可见%>
        						<%if(session.user.isAdmin){%>
        						<%include("/eova/button/btn/quick_lay.html",{'menu': menu, 'object':object, 'queryId':'queryForm', 'parentId': 'grid'}){}%>
        						<%include("/eova/button/btn/quick_objectFieldAuth_lay.html",{'menu': menu, 'object':object, 'queryId':'queryForm', 'parentId': 'grid'}){}%>
								<%}%>
	  
	  
	</div>
	
<!-- 	<table id="dataList" lay-filter="dataList"></table> -->
	<#grid_lay id="grid" objectCode="${object.code}" toolbar="gridToolbar" menuCode="${menu.code}" />
	


<!-- <script type="text/javascript" src="../../ui2/js/dataList.js"></script> -->
</body>
<script type="text/javascript" src="${STATIC!}/ui/js/template.js"></script>
<%if(!isEmpty(menu.diy_js!)){%>
<script type="text/javascript" src="${menu.diy_js}"></script>
<%}%>
<%}%>
